<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<title>分组管理</title>
	<link rel="icon" href="../images/icon.jpg" type="image/x-icon">
	<link rel="stylesheet" type="text/css" href="../css/generalstyle.css">
	
	<script type="text/javascript">
    function check()
    {
      if(document.addGroup.gName.value=="")
      {
         alert("请填写分组名！！！");
         addGroup.gName.focus();
         return false;
      }
      if(document.addGroup.gImg.value=="")
      {
         alert("请填写图片URL！！！");
         addGroup.gImg.focus();
         return false;
      }
      if(document.addGroup.gDetail.value=="")
      {
         alert("请填写描述信息！！！");
         addGroup.gDetail.focus();
         return false;
      }
      if(document.addGroup.gOrderDet.value=="")
      {
         alert("请填写预订的一些规则！！！");
         addGroup.gOrderDet.focus();
         return false;
      }
      document.addGroup.submit();
    }    
   </script>
  </head>
  
  <body>
   <%@ include file="admintop.jsp" %><br>   
    <%
      Vector<String> ginfo = 
      	 (Vector<String>)request.getAttribute("ginfo");
 	%>
   <center>
    <font color="red" size="5.5">请认真正确填写分组信息</font>
   </center>
   <form name="addGroup" action="servlet/ListServlet" method="post">
   <table align="center" border="0" width="60%">
    
     <tr bgcolor="ffeeee">
      <td align="right" width="20%">组名:</td>
      <td><input type="text" name="gName"></td>
     </tr>
     
     <tr>
      <td align="right">图片URL:</td>
      <td><input type="text" name="gImg"></td>
     </tr>
     
     <tr bgcolor="ffeeee">
      <td align="right">描述:</td>
      <td>
        <textarea rows=6 cols=50 name="gDetail"></textarea>
      </td>
     </tr>
     <tr>
      <td align="right">规则:</td>
      <td>
        <textarea rows=6 cols=50 name="gOrderDet"></textarea>
      </td>
     </tr>
     <tr bgcolor="ffeeee"><td></td>
      <td align="left">
       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       <input type="hidden" name="action" value="addGroup"> 
       <input type="button" value="添加" onclick="check()">
       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       <input type="reset" value="重置">
      </td>
     </tr>
    
   </table><br>
   </form>
  </body>
</html>
